/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const detailed = {
  path: '/detailed',
  component: Layout,
  redirect: 'noRedirect',
  name: '明细账',
  alwaysShow: true,
  meta: {
    title: '明细账',
    icon: 'documentation',
    roles: ['/detailed/multiAccount', '/detailed/unilatAccount']
  },
  children: [
    {
      path: 'multiAccount',
      component: () => import('@/views/detailed/multiAccount/index'),
      name: 'multiAccount',
      meta: { title: '多边账明细', noCache: true, roles: ['/detailed/multiAccount'] }
    },
    {
      path: 'unilatAccount',
      component: () => import('@/views/detailed/unilatAccount/index'),
      name: 'UnilatAccount',
      meta: { title: '单边账明细', roles: ['/detailed/unilatAccount'] }
    },
    {
      path: 'dayspanAccount',
      component: () => import('@/views/detailed/dayspanAccount/index'),
      name: 'DayspanAccount',
      meta: { title: '跨天账明细', roles: ['/detailed/dayspanAccount'] }
    }
  ]
}

export default detailed
